package com.dragee.modules.work.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.utils.excel.FieldDispose;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 出场裁判表
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-05-08 18:45:10
 */
@Data
@TableName("t_competition_order_referee")
public class CompetitionOrderRefereeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ExcelIgnore
    private Long id;

    /**
     * 场次Id
     */
    @ExcelProperty(value = "比赛id")
    @FieldDispose(value = "competitionId")
    private String competitionId;
    /**
     * 场次Id
     */
    @ExcelProperty(value = "场次Id")
    @FieldDispose(value = "orderId")
        private String orderId;
    /**
     * 裁判名
     */
    @ExcelProperty(value = "裁判名")
    @FieldDispose(value = "name")
        private String name;
    /**
     * 裁判身份证
     */
    @ExcelProperty(value = "裁判身份证")
    @FieldDispose(value = "idCard")
        private String idCard;

    private String applyProjectIds;
    /**
     * 类型
     */
    @ExcelProperty(value = "类型")
    @FieldDispose(value = "type")
        private String type;

    private String loginStatus;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;
    /**
     * 排序字段
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long sort;
    }